/* 代码块样式 */
.code-block-container {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #e8eaed;
  border-bottom: 1px solid #d1d5db;
}

.language-badge {
  background: #4285f4;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.copy-button {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #5f6368;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-button:hover {
  background: #f1f3f4;
  border-color: #9aa0a6;
}

.copy-button:active {
  background: #e8eaed;
}

.code-content {
  background: #ffffff;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #202124;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-content code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* SQL语法高亮 */
.language-sql {
  color: #202124;
}

.language-sql .keyword {
  color: #d73a49;
  font-weight: 600;
}

.language-sql .string {
  color: #032f62;
}

.language-sql .number {
  color: #005cc5;
}

.language-sql .comment {
  color: #6a737d;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .code-header {
    padding: 6px 10px;
  }
  
  .language-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  .copy-button {
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .code-content pre {
    padding: 12px;
    font-size: 12px;
  }
}
